Routing method and system for a wireless network

ABSTRACT

A method and system for selecting a route in a wireless network for the transmission of a data packet between wireless nodes in the network using a modified link-state routing algorithm. A subset of nodes called portal nodes within the network are elected to do the broadcasting for the entire network. A wireless node identifies a unicast route back to its root portal node, and sends a link-state register message to this portal node. These link-state register messages received by each portal node are aggregated by them and are broadcast to each of the wireless nodes for storage. When a data packet is thereafter received by a wireless node from a neighboring node, it detects if the data packet satisfies one of a plurality of predetermined conditions and rebroadcasts the data packet to neighboring wireless nodes if none of the conditions is satisfied.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 14/610,187, filed Jan. 30, 2015, which is a continuation of U.S. patent application Ser. No. 11/903,443, filed Sep. 21, 2007, now U.S. Pat. No. 8,948,046, which claims the benefit of U.S. Provisional Patent Application No. 60/926,590, filed Apr. 27, 2007, all of which are hereby incorporated by reference herein.

BACKGROUND

The present invention relates to methods and systems for enabling data packets to be routed through a wireless network, where the network comprises a number of individual wireless transceivers configured to enable data packets to move or hop from one wireless transceiver or node to another until they reach a given destination. More particularly, the present invention includes a routing protocol that uses a modified link-state routing algorithm to make fast routing computations and reverse-path-lookup rules to prevent broadcast loops.

A trend in distributed networks is the proliferation of wireless applications for voice, fax, paging, data, images, and video. The use of these wireless applications is expanding to true global coverage through the use of satellite networks and in-flight data communications services on commercial airlines. These wireless networks generally have lower bandwidths and higher error rates than traditional wired networks. One type of wireless network in particular, the “ad-hoc,” or Mobile Ad-Hoc Network (MANET) is particularly sensitive to these issues. MANETs are networks that may be deployed rapidly with little or no assistance and that do not have a central network structure, such as cellular-base stations or overhead satellite assets. The nodes within the MANETs are typically highly mobile and use a variety of wireless network platforms. Furthermore, nodes within the MANET may dynamically enter or leave the network. Therefore, the number of nodes and the disposition of nodes within the MANET are highly fluid and are often continually changing. By their nature, MANETs complicate the design and implementation of acceptable protocols to support communications between nodes within the network.

The configuration of an ad-hoc network typically is either hierarchical or flat. In a hierarchical ad-hoc network, the network nodes are partitioned into groups called clusters. Within each cluster, one node is chosen to be a “cluster head.” In contrast, the nodes in a flat ad-hoc network are all equal. Connections are established between nodes that are in close enough proximity to one another to allow sufficient radio propagation conditions to establish connectivity. Routing between nodes is constrained by the connectivity conditions, and possibly by security limitations. In the general case, a network may use a hybrid approach wherein a cluster-based topology is used for routing-control traffic but a flat network topology is used for the actual user-data traffic.

Ad hoc networking introduces several important difficulties for traditional routing protocols. First, determining a packet route requires that the source node know the reachability information of its neighbors. Second, the network topology may change quite often in an ad-hoc network. As the number of network nodes increases, the potential number of destinations becomes large, requiring large and frequent exchanges of data (e.g., routes, route updates, or routing tables) among the network nodes. Updates in the wireless communication environment travel over the air, and therefore consume a great deal of network resources. As the network size increases and as the nodal mobility increases, smaller and smaller fractions of this total amount of control traffic are of practical usefulness. This is due to the fact that, as the nodes become more mobile, the lifetime of a link decreases, and the period in which the routing information remains valid decreases as well. It is easy to see that, for any given network capacity, there exists a network size and nodal mobility which would result in having all the network capacity wasted on control traffic.

Existing IP routing protocols that manage wireless networks can be classified either as proactive or as reactive. Proactive protocols attempt to continuously evaluate the routes within the network, so that when a packet needs to be forwarded, the route is already known and can be used immediately. The Optimized Link State Routing Protocol (OLSR) is one example of such a proactive scheme known to persons of ordinary skill in the art. Reactive protocols, on the other hand, invoke a route determination procedure on demand only. Thus, when a route is needed, a global search procedure is employed. The classical flood-search algorithms are typical reactive protocols, such as the Ad Hoc On-Demand Distance Vector Protocol (AODV), which is also known to persons of ordinary skill in the art.

The advantage of proactive protocols is that the route is always pre-calculated, so that there is little delay involved when forwarding data traffic. In reactive protocols, the delay created by the process of determining a route can be quite significant. Furthermore, the global search procedure of reactive protocols requires significant control traffic. An example of how this search procedure is implemented is described in the AODV Protocol. Such route determination delays may also cause data packets to be dropped, unless the device has sufficient capacity to buffer them. Such buffer systems also cause significant implementation complexity. Consequently, pure reactive routing protocols may not be practical for real-time communications in MANETs. However, pure proactive schemes are also not appropriate for MANETs, as they continuously use a large portion of the network's capacity to keep the routing information current, even with the optimization procedure used in OLSR. OLSR uses a procedure called MultiPoint-Relay (MRP) to reduce the flooding control traffic to a certain degree, but it still does not change the fundamental per-node-flooding mechanism.

At the IETF (Internet Engineering Task Force), there is a MANET working group (see http://www.ietf.org/html.charters/manet-charter.html) which is working on a standardizing IP routing protocol functionality suitable for wireless routing applications within both static and dynamic topologies with increased dynamics due to node motion or other factors. The routing protocols that have been standardized by this working group include AODV (RFC 3561), OLSR (RFC 3626), TBRPF (RFC 3684) and DSR (RFC 4728). More detailed information can be found at the website given above.

The IEEE 802.11s working group is proposing two routing approaches: one based on AODV and another one based on an OLSR. These approaches attempt to port the same routing protocol standardized by IETF to a Layer 2 domain. That is, while the basic routing protocol is still the same, the IP addresses have been replaced with Medium Access Control (MAC) addresses, while the IP based routing messages have been replaced with 802.11 Information Elements in 802.11 frames. The AODV approach is used with the hope that it will consume less network resources as long as the topology correctness satisfies the minimum requirement. This approach has the limitation of slow network topology convergence and longer route setup delays, which are very critical to the users of a wireless access network. One of the primary goals when deploying a wireless access network is to support mobility, which means supporting a virtually constantly changing network topology. Slow topology convergence time also indicates a bad network application response time, which is unacceptable for some timing critical applications like Voice Over IP (VoIP). The Ad Hoc On-Demand Distance Vector Routing Protocol, dated July, 2003, and the Optimized Link State Routing Protocol, dated October 2003, are incorporated herein in their entirety by reference.

Some prior art network equipment vendors use an approach called the controller-based Wi-Fi access solution, which depends on a wired architecture to connect all access points back to a central controller. Because of this wired and centralized backhaul network topology, the networking routing challenge disappears, but it does not come for free. The price paid by this sort of network is the limited scalability and system robustness that it provides, which is intrinsic for any centralized approach.

What is needed is a routing protocol that is optimized for static backhaul topologies with mobile stations and based on Layer 2 information similar to the IEEE 802.11s path selection protocol.

What is further needed is a scalable routing method and system that significantly reduces the broadcast control message overhead in a distributed wireless network, while still maintaining fast routing computations that are loop free, to thereby provide a scalable robust wireless access network. After the network route is established, what is also needed is a method and system for eliminating data packet broadcast looping.

SUMMARY

The present invention is a proactive best-path routing protocol for use in scalable and robust wireless distributed systems with wired or wireless or both as backhaul connections. The routing protocol according to the present invention uses a modified proactive link-state routing algorithm, wherein only a limited number of broadcast messages are generated to synchronize the link-state database throughout the wireless network. This is quite different from the OLSR approach. More specifically, the present invention elects a subset of nodes called portal nodes within the network to do broadcasting for the whole network. Each portal node broadcasts an announcement of its identity to all of the wireless nodes. Each wireless node responds to these broadcasts to select one of the portal nodes as its root portal node. It then identifies a unicast route back to its root portal node, and sends a link-state register message to this portal node. These link-state register messages received by each portal node are aggregated by them and are broadcast to each of the wireless nodes for storage.

The present invention uses reverse-path-lookup rules to do broadcast loop prevention when forwarding broadcast and multicast traffic, to thereby provide an efficient way to handle wireless client mobility. When a data packet is received by a wireless node from a neighboring node, it detects if the data packet satisfies one of a plurality of predetermined conditions and rebroadcasts the data packet to neighboring wireless nodes if none of the conditions is satisfied. By contrast, both OLSR and AODV cache the per packet sequence number to eliminate the broadcast forwarding loop. This per packet state created in a device's data path introduces a significant complexity, thereby making data forwarding too complicated.

Broadly stated, the present invention is a method for selecting a route in a wireless network for the transmission of a data packet between a wireless node and a selected one of a plurality of portal nodes that each function as a backhaul connection to a wired or wireless data network, where each of the data packets includes four addresses: a transmitting node address, a receiving address within one wireless node hop, the original sending node address, and the ultimate destination address. The method includes causing each portal node to broadcast an announcement of its identity as a portal node to all of the wireless nodes, each wireless node acting in response to this broadcast to elect one of the portal nodes as its root portal node and to identify a unicast path back to its elected portal node, causing each wireless node to send a link-state register message to its elected root portal node, each portal node acting in response to the receipt of a link-state register message to aggregate these messages into one link-state-update packet and to broadcast the link-state-update packet to each of the wireless nodes, each wireless node storing the received link-state-update packets in a link-state database at the node.

The present invention further comprises a method and system for detecting in a given wireless node if a data packet being broadcast from a neighboring node satisfies one of a plurality of conditions indicating that the data packet should not be rebroadcast and re-broadcasting the data packet to neighboring wireless nodes if none of the plurality of conditions is satisfied.

The present invention provides the following advantages:

Distributed Cooperative Control

The distributed routing and packet forwarding approach according to the present invention makes the wireless network extensible and scalable. For example, more than one portal can be, and typically is active at any given time receiving and broadcasting link-state information. The present invention also eliminates the “single-point-of-failure” that exists with a central controller based wireless network, to therefore make the network robust.

Proactive Routing Protocol

Network topology information is exchanged proactively, so that it's faster after client stations join the network or roam from one wireless node to another.

Minimized Control Message Broadcast

Each node in the network elects a portal node as its root portal node. With the broadcast messages only coming from portal nodes, the consumption of valuable airtime bandwidth by control messages is significantly reduced. It is this reduction in overhead that makes the network usable for forwarding client data traffic. Excessive control message overhead has been a major barrier to the deploying of proactive routing protocols in prior art wireless networks.

Effective Multicast/Broadcast Loop Detection Mechanism

The presented loop detection mechanism is simple and effective, compared to any other cache based mechanisms (e.g., where the data packet or cache sequence number is modified after forwarding a packet). It avoids having to build any per packet state at each forwarding node, therefore making it practical to engineer the distributed proactive routing protocol in a wireless network.

2 Level Link-State Organization to Minimize Topology Change Impact on Routing when Wireless Client Mobility Happens

The separating of backhaul link-state and client link-state in the wireless access network enables the topology changes caused by client mobility to have a minimal impact on routing algorithm complexity, which thereby boosts the scalability of the routing protocol.

Fast Roaming Support

The fast roaming mechanism enabled by the process according to the present invention reduces the possibility of data flow interruptions caused by topology changes and routing convergence times.

Seamless Interoperation with Existing Ethernet Switching Technologies

The present invention works with both wired and wireless backhaul links. It is designed to interoperate with existing Ethernet LAN switching technology. The user does not need to change any existing wired network topology to deploy a wireless access network according to the present invention, and a user always has the ability to easily extend or reduce the wireless deployment in the future.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements and in which:

FIG. 1 illustrates a wireless ad-hoc network connected to access switches and a distribution switch of an Internet Service Provider (ISP) by means of a plurality of portal nodes or access points;

FIG. 2 illustrates an exemplary portal node election procedure in a wireless ad-hoc network according to the present invention;

FIG. 3 illustrates an exemplary link-state register and broadcast procedure in a wireless ad-hoc network according to the present invention;

FIG. 4 illustrates an exemplary reverse-path-lookup procedure in a wireless ad-hoc network according to the present invention;

FIG. 5 illustrates an example of the third reverse-path-lookup rule according to the present invention.

FIG. 6 illustrates a prior art exemplary wireless ad-hoc network having four nodes.

FIG. 7 illustrates an exemplary client roaming procedure in a wireless ad-hoc network according to the present invention.

DETAILED DESCRIPTION

The present invention provides a method and system for synchronizing network link-state information, determining routing for each participating device, forwarding of data packets accordingly, and internetworking with existing layer 2 switching networks.

According to the present invention, to synchronize link-state information for a particular node in a wireless network having a plurality of nodes, the node link-state must be broadcast to the whole network. Only a small subset of nodes are enabled to broadcast to the whole network. If a node belongs to this subset, the node is called a “portal” node. Preferably each portal node also is a backhaul link to an external wired LAN, e.g., an Ethernet link to the an Internet Service Provider (ISP). All other wireless nodes will have to unicast their link-state to one of the portal nodes, and then that portal node will aggregate and broadcast the nodes' link-states to the whole network. Eventually, each node within the network will have a synchronized link-state database of every node in the network, and can then run a standard shortest path selection algorithm to determine the route to each destination. With a unicast routing table now residing in each wireless node, a further embodiment of the present invention comprises a “reverse-path-lookup” method and system which is used by each node to break broadcast/multicast data packet loops. The protocol method according to the present invention includes the following parts:

Portal node election.

Link-state register/broadcasting.

Route determination.

Packet forwarding.

FIG. 1 illustrates an exemplary wireless ad-hoc network 10 externally connected to access switches 12 and 14 and a distribution switch 16 of an Internet Service Provider (ISP) by means of a plurality of portal nodes. As shown in FIG. 1, certain of the wireless nodes in network 10 have wired connections to an external network, such as a local area network (LAN), to provide access points (APs) to and from such an external network in a conventional manner, e.g., by means of an Ethernet link to the access switches 12, 14 and distribution switch 16. Each of these wireless nodes in a preferred embodiment of the present invention is elected to be a portal node. In the exemplary network shown in FIG. 1, these portal nodes include nodes H1, H2, and H3. Each portal node functions to broadcast announcements to the whole wireless network. The non-portal wireless nodes in the wireless network 10 in FIG. 1 include nodes H4-H10. A plurality of wireless clients or client stations AA, AB, AC and AD are also shown, each linked to a different access point (AP) in the wireless network. Preferably, each of the wireless nodes in network 10 is enabled to be a client station access point. In the exemplary wireless network in FIG. 1, client AB is linked to wireless node H8, client AC is linked to wireless node H9 and client AD is linked to wireless node H10. Each wireless client can comprise a laptop computer, PDA, cell phone, or any other wireless device seeking network access. Note also that each wireless node H4-H10 preferably is able to serve multiple client stations at the same time. The present invention utilizes the protocol method according to the present invention to rapidly respond to client station topology changes

The portal announcements generated by each portal node serve two purposes. The first is to let every other node know of each portal node's existence. The second is to cause each non-portal node to elect one portal node to be its root portal node, to establish a unicast path back to its elected root portal node, and then to unicast the node's link-state to its root portal node.

The announcement packet generated by each portal node contains the following information:

Node ID Sequence number Metric Where:

The NodeID is the address of a portal node (e.g., its Ethernet address);

The Sequence number is an increasing integer per node; and

The Metrics value is the cost of each network link.

In a preferred embodiment, the metric value represents the number of links that the announcement has traversed from the portal node to the node receiving the announcement. Each non-portal wireless node elects as its root portal node the portal node whose announcement metric value is the lowest.

FIG. 2 illustrates an exemplary portal node election procedure according to the present invention in a wireless ad-hoc network 20 shown in FIG. 2. In this example, H2 is a portal node that has an external connection to an access switch 22, and enables the wireless network 20 to access the Internet or some other data network. In addition, a client station M1 is shown linked to wireless node H9.

-   -   Step-1: Portal node H2 initiates an announcement 100, comprising         a node ID of H2, a sequence number of 100, and a metric value         of 0. This broadcast is schematically illustrated as the two         bold arrows pointing from portal node H2.     -   Step-2: Both H5 and H6 receive the broadcast packet (the         following discussion focuses on H6 as an example of typical node         operation; H5 will operate in the same fashion). H6 always         records the latest sequence number per node; in this case, H6         knows H2's most recent sequence number had been 99 before         announcement 100 was generated. H6 compares the stored sequence         number 99 with the one carried within the packet 100; the packet         is newer than what H6 had seen before, and so it takes this         packet. By taking this packet, H6 will (1) update H2's sequence         number to 100, (2) install a unicast route <to H2, next hop is         H2 cost is 1>, and (3) H6 will relay the broadcast to other         wireless nodes in its neighborhood. Thus, the relayed         announcement is: node ID is H2, sequence number is 100, metric         is 1. This broadcast is schematically shown in FIG. 2 as three         non-bolded arrows pointing from node H6.     -   Step-3: H2, H5, and H9 all receive the relayed announcement and         follow the same logic as in step-2, but only H9 will take the         packet. H2 and H5 will both drop the packet because the sequence         number carried within the packet is not newer than what they saw         before. This is shown in FIG. 2 schematically where two of the         non-bolded arrows have an X drawn across them.     -   Step-4: H9 will take the packet and install a unicast route <to         H2, next hop is H6 cost is 2>. Also, H9 will relay the broadcast         packet again, as schematically illustrated in FIG. 2 as dotted         arrows pointing from H9, but this broadcast packet will be         dropped by H5 and H6 for the same reason as in Step-3.

To abstract the steps of this portal node election process according to the present invention from the above example, when a node receives an announcement, the following actions are preferably done at each node:

-   -   1. Identify who originated the announcement, by reading the node         ID from the announcement.     -   2. Decide if the packet should be taken, by comparing the stored         node's sequence number and the one carried in the announcement.     -   3. Once the announcement is taken, update the stored sequence         number, and install a unicast route to the announcing portal         node.     -   4. Relay the announcement after updating the Metric value.

If multiple portal nodes exist, the same logic will apply to the announcement from each portal node. As can be seen, each portal node operates independently of the other portal nodes and so the wireless network is not limited to having only one portal node operating at a time.

Link-State Register/Broadcasting:

After each node has identified a route back to each portal node, it will register local link-state information to one or more selected portal nodes. The portal nodes will aggregate and broadcast the nodes' link-states to the whole network.

The Link-state-register is a unicast message and contains the following information:

Node ID Backhaul links Client links

The link-state-broadcast is a broadcast message that contains a common header and the aggregated link-states registered by other nodes:

Node ID Sequence number Node-1 link-state . . . . . . Node-n link-state

FIG. 3 illustrates an exemplary link-state register and broadcast procedure according to the present invention in a wireless ad-hoc network 30. In this example, the portal node H1 is connected to an external access switch 32 to enable the wireless network 30 to access the Internet or some other data network. In addition, client status M1 and M2 are linked to wireless nodes H4 and H8, respectively. As seen in FIG. 3, the exemplary process is as follows:

-   -   Step-1: After H8 receives the portal announcement, it will         register its link-state information to the portal node by         sending a unicast message to portal node H1 (as illustrated by         the thin dashed arrow pointing from H8 in FIG. 3). Because H5         already set up the route back to the portal node, it is able to         forward the message to the portal node H1 (as illustrated by the         thin dashed arrow pointing from H5). H4 will do the same thing         (as illustrated by the thick dashed arrow pointing from H4).     -   Step-2: Portal node H1 will receive a link-state register         message from each node, aggregate multiple link-state messages         into one packet and broadcast this aggregated packet to the         whole network. We call this the aggregated message the         link-state-update message (as illustrated by the bold arrows         pointing from H1, H4 and H5). The link-state-update message will         share the same increasing sequence number, so it can prevent         broadcasting loops and ensure that the receiving node will be         the only one to take the latest message.     -   Step-3: Every node in the network will receive the         link-state-update message, so that each node will then have a         synchronized link-state database.         Route Calculation:

By doing portal announcing and link-state register/broadcasting, each node in the network will have the same synchronized database. The present invention uses a novel technique to organize the link-state data structure in such a way that the frequent wireless client (e.g., laptop) mobility will not cause the route selection algorithm to constantly run, which will save a significant amount of system resources (e.g., CPU time and memory usage).

As illustrated in the above example, each wireless node divides the link-states into two categories:

-   -   backhaul link: a logical link between two wireless nodes, either         through a wireless radio or a wired link (e.g., an Ethernet         link).     -   Such a link can be a wireless link or a wired link, unlike         802.11s, where the link must always be a wireless link.     -   client link: A link between a client mobile device or station         and a wireless node AP.

To calculate a route to a client station, for example, a single table lookup can identify which node the station is attached to, and then any standard link-state algorithm can be used to get the route to the attaching node. We call this a 2-level route calculation.

An exemplary route calculation using a link-state routing protocol known in the art is as follows. As background, the link-state routing protocol is one of the two well known main classes of routing protocols used in packet-switched networks for computer communications. Examples of link-state routing protocols include Open Shortest Path First (OSPF) and Intermediate System to Intermediate System (IS-IS). The link-state protocol is performed by every wireless node in the network (i.e. nodes which are prepared to forward packets, also called routers). The basic concept of link-state routing is that every node receives a map of the connectivity of the network, in the form of a table showing which nodes are connected to which other nodes. Each node then independently calculates the best next hop from it for every possible destination in the network. It does this using only its local copy of the map, and without communicating in any other way with any other node. The collection of best next hops forms the routing table for the node.

With the complete set of link-states (one from each node in the network) in hand, it is straightforward for each wireless node to produce this table for the map of the network. The algorithm simply iterates over the collection of link-states, and for each one, it makes links on the map of the network, from the node which sent that message, to all the nodes which that message indicates are neighbors of the sending node. No link is considered to have been correctly reported unless the two ends agree, i.e., if one node reports that it is connected to another, but the other node does not report that it is connected to the first, there is a problem, and the link is not included on the map.

The second step in the link-state algorithm is for each node to produce routing tables from the map it has generated. Each node independently runs an algorithm over the map to determine the shortest path from itself to every other node in the network. Generally, some variant of Dijkstra's algorithm is used. Basically, each node maintains two data structures: a tree containing nodes which are “done”, and a list of candidates. The algorithm starts with both structures empty; it then adds to the first one the node itself. The algorithm then repetitively:

-   -   Adds to the second (candidate) list all nodes which are         connected to the node just added to the tree (excepting of         course any nodes which are already in either the tree or the         candidate list).     -   Of the nodes in the candidate list, the one which is closest to         any of the nodes already in the tree is moved to the tree         (attaching it to the appropriate neighbor node already there).     -   Repeats as long as there are any nodes left in the candidate         list. (When there are none, all the nodes in the network will         have been added to the tree.)

This procedure ends with the tree containing all the nodes in the network, with the node on which the algorithm is running as the root of the tree. The shortest path from that node to any other node is indicated by the list of nodes one traverses to get from the root of the tree, to the desired node in the tree. With the shortest paths in hand, filling in the routing table is again straightforward. For any given destination node, the best next hop for that destination is the node which is the first step from the root node, down the branch in the shortest-path tree which leads toward the desired destination node. To create the routing table, it is only necessary to walk the tree, remembering the identity of the node at the head of each branch, and fill in the routing table entry for each node one comes across with that identity.

As mentioned above, a key disadvantage of prior art link-state protocols is that each wireless node is able to broadcast link-state messages to other nodes throughout the network (i.e., it is flooded throughout the network whenever there is a change in the connectivity between the node and its neighbors, e.g., when a link fails or a client station moves from one node to another). Then, each node must recreate its routing table to incorporate this new connectivity information. As can be seen, this creates a burdensome overhead for a network of any significant size.

According to a preferred embodiment of the present invention, each portal node periodically broadcasts a new announcement, to thereby institute a new portal node election process and link-state register updating. In a preferred embodiment, this step is performed once every minute. As is seen, the wireless network according to the present invention is enabled to reestablish all routes between nodes in the network in this time frame.

Packet Forwarding:

According to the present invention, for unicast packet forwarding, once a route is established for a wireless client, the unicast packet forwarding is done by doing the 2-level route lookup at each node. First, the wireless client destination lookup is performed to identify the node this client is attached to. This will give us the node ID of the wireless access point node. Then the backhaul route lookup is performed by using the access point node ID as the destination. This will give us the next-hop address and the outgoing interface (whether the outgoing interface is a selected one of the node's radio interfaces—it typically will have more than one such interfaces—or a wired Ethernet interface) in order to forward the packet. Any failure during the lookup process will cause the packet to be dropped silently.

The challenge for broadcast forwarding in a wireless network is the need to break forwarding (broadcast) loops. The present invention uses a technique called “reverse-path-lookup” to decide if a broadcast looping is occurring, such that the looped packet needs to be dropped. In a wireless network, to relay a broadcast packet, the broadcast packet will be sent out to the same radio interface from which it was received, so all the neighboring nodes, including the upstream node, will receive the packet. From the upstream node's point of view, this packet is looping and should be dropped.

According to the IEEE 802.11 standard, all wireless packets being forwarded in wireless backhaul will contain 4 addresses (“FF” is used to represent the broadcast destination address):

Tx: the transmitting node address.

Rx: the receiving address within one hop.

Src: the original sending node address.

Dst: the ultimate destination address.

“Reverse-path-lookup” will do a unicast route lookup for the “Src” of any broadcast packet. If the nexthop of the route doesn't match the “Tx” value of the packet, the broadcast packet will be dropped.

FIG. 4 illustrates an exemplary reverse-path-lookup procedure according to the present invention in a wireless ad-hoc network 40. In this example, the portal node H2 is connected to an external access switch 42 to enable the wireless network 40 to access an external network. As seen in FIG. 4, the process is as follows.

Each node already has identified a unicast route to H9 by performing the nexthop route calculation as stated above. In this example, we list the route to H9 at each node. The “reverse-path-lookup” procedure will use this table later as described in the steps below:

Node Nexthop At node H2 H6 At node H5 H9 At node H6 H9 At node H9 H9

-   -   Step-1: H9 originates a broadcast packet (as illustrated by the         thin dashed arrow pointing from H9). As indicated in FIG. 4,         both node H5 and H6 will receive this broadcast packet. Doing a         “reverse-path-lookup,” both nodes will find that the route to H9         has the nexthop of H9, which matches the Tx value in the packet.     -   Step-2: H5 relays the broadcast packet (as illustrated by the         thin arrows pointing from H5 in FIG. 4), after it sets the Tx         field in packet as H5 (itself). H6 relays the broadcast packet         (as illustrated by the thick dashed arrows pointing from H6 in         FIG. 4), after it sets the Tx field in packet as H6 (itself).     -   Step-3: All three other nodes receive the packet relayed by H5         (as illustrated in FIG. 4 as the thick arrows pointing from in         FIG. 4), but the “reverse-path-lookup” check finds that the Tx         value in these packets does not match the nexthop in the route.         So all three other nodes will drop the packet relayed by H5.     -   Step-4: All three other nodes also will receive the packet         relayed by H6 (as illustrated as the thick dashed arrows         pointing from H6 in FIG. 4). The “reverse-path-lookup” check at         H5 and H9 finds that the Tx value in these received packets does         not match the nexthop in the route. H5 and H9 will therefore         drop the packets they receive. But portal node H2 does a         “reverse-path-lookup” check and finds that the Tx value in the         packet it received from H6 matches the route nexthop, so H2 will         take the packet.     -   Step-5: H2 relays the packet back out to the wireless interface         as well as through the Ethernet interface to access switch 42         (as illustrated in FIG. 4 by the bold arrows pointing from H2).         Both H5 and H6 will drop the looped packets they receive from         portal node H2 after doing a “reverse-path-lookup” check. The         packet sent out through the Ethernet interface to access switch         42 will be handled by the switch 42 and will not be looped back         from the switch.

So, by having each node do a “reverse-path-lookup” check and relay a broadcast packet only when the “reverse-path-lookup” conditions are met, the broadcast message successfully reaches everywhere in the wireless network as well as leaking to the wired network, without causing any unwanted packet looping.

FIG. 5 illustrates an example of the third reverse-path-lookup rule according to the present invention. As seen in FIG. 5, the exemplary third rule process is as follows:

-   -   Step-1: A PC connected on the internet external to a wireless         network 50 sends a broadcast packet (ff:ff is used to denote the         destination address at node H3) via an access switch 52. The         packet arrives at the ‘eth0’ interface of node H1.     -   Step-2: Since it's a broadcast packet, H1 forwards it out on its         radio interface. Node H2 is a neighbor of node H1 and will         receive the broadcast packet.     -   Step-3: Using the same logic, H2 will forward the broadcast         packet out on its radio interface with destination address         ‘ff:ff’. H3 is a neighbor of node H2 and will receive the         broadcast packet. Notice that H1 will also receive this packet.     -   Step-4: When H1 receives this looped back packet, it does a         reverse-path-lookup, finds that to reach ‘PC’, the outgoing         interface is ‘eth0’, which is different from the incoming         interface ‘radio’. The looped broadcast packet is therefore         dropped by H1.

To summarize the generic rule of “reverse-path-lookup,” any of the following conditions will indicate a possible broadcast loop, and therefore the packet must be dropped:

-   -   1) There is no route with destination matching the original         sender.     -   2) There is a route match, the outgoing interface is a wireless         backhaul interface, and the next-hop address of the route is         different from the relaying node's transmitting interface         address.     -   3) There is a route match, the outgoing interface is NOT a         wireless interface, and it is different from the incoming         interface.

The above described “reverse-path-lookup” procedure is significantly different from the prior art RPF (Reverse Path Forward) technique, which is used in IP multicast routing protocols like PIM (Protocol Independent Multicast). The major difference is in condition 2 above. In RPF, it does not check the next hop address but rather the incoming interface. If the outgoing interface of RPF lookup is the same as the incoming interface, the packet is then dropped. However, this technique does not work for wireless networks. In wireless networks, when a node forwards a broadcast/multicast packet, it will be forwarded out to the same radio interface from which the packet was received. For example, there are four nodes, Node A, B, C and D, in an exemplary wireless network as shown in FIG. 5. As is seen, Node A relays a multicast packet to Node B, and B communicates with both C and A via a wireless backhaul interface. Node C communicates with both B and D via a wireless backhaul interface.

According to the prior art RPF technique:

-   -   1) Node A relays a multicast packet from one of its clients to         B;     -   2) B receives the multicast packet, the RPF check is OK, and so         B relays the traffic out to C. But notice it's a wireless         network, so at the same time A also receives the multicast         packet relayed by B;     -   3) The same logic happens at C and C will relay the multicast         traffic to D. Again, B will receive the packet relayed by C as         well because of the wireless media; and     -   4) When B receives the packet relayed by C, it cannot be         differentiated from the original packet sent by A from the RPF         point of view. Therefore, the packet relayed by C will not be         dropped by doing the RPF check, and so it will cause an unwanted         loop in the wireless network.

The present invention of “reverse-path-lookup” is the solution to this problem.

Wireless Client Roaming:

In a wireless network, client roaming happens virtually all of the time (e.g., people carry their laptop around). The present invention maintains the continuing data flow while the client is roaming. The following example illustrates the method. In this example, as shown in FIG. 6, Station(M) roams from node A to node B. Note that, to perform the roaming notification step for maintaining continuous data traffic, the client link-state information needs to be synchronized across the network. Note also that, before the roaming happens, both node A and node B have the knowledge of the client link-state M→A, as a result of the use of the routing protocol according to the present invention, as described above.

FIG. 6 illustrates an exemplary client roaming procedure according to the present invention in a wireless ad-hoc network 60. As in the previous examples, wireless network 60 is coupled to an external access switch 62 by a portal node 64. As seen in FIG. 6, the process is as follows:

-   -   Step-1: Station M roams from node A to B. Node B will update the         client link-state of M as M→B. At the same time, node B will         find that M was previously connected to A. So, node B will send         a unicast message to node A hop-by-hop, informing A about the         client link-state change (as illustrated by dashed arrows         pointing from node B to node A in FIG. 6). Node A is unable to         notify the network that it has lost its link to M since M can no         longer communicate with node A once the link with node A has         been lost.     -   Step-2: All the nodes along the way from B to A will get the         roaming message, and will update the connection of M→B         accordingly.     -   Step-3: As long as node A receives the roaming message from B         and updates the connection M→B, even if other nodes have not         updated the client link-state M→B yet, node A is able to forward         data packets from portal node 64 to node B (as illustrated by         the bold arrows pointing from portal node 64 to node B).

To perform the roaming notification step for maintaining continuous data traffic, we have to have the client link-state information synchronized across the network. This can be done periodically or whenever a client links up to or disconnects from a given wireless node.

All embodiments of the present invention described above are illustrative of the principles of the invention and are not intended to limit the invention to the particular embodiments described. Accordingly, while the preferred embodiment of the invention has been illustrated and described, it will be appreciated that various changes can be made therein without departing from the scope of the invention as claimed. 

The invention claimed is:
 1. A method, comprising: receiving, at a portal routing device, a packet including a destination network address assigned to a wireless device; receiving, at the portal routing device, a link-state register message from each of a plurality of non-portal routing devices, the link-state register message comprising backhaul link information and client link information; aggregating, by the portal routing device, the link-state register messages from the plurality of non-portal routing devices to generate a backhaul link data structure storing the backhaul link information from the plurality of non-portal routing devices and a client link data structure storing the client link information from the plurality of non-portal routing devices, the backhaul link data structure being stored separately from the client link data structure at the portal routing device; based on the client link data structure, identifying, at the portal routing device, a first wireless non-portal routing device from among the plurality of non-portal routing devices connected to the wireless device; based on the backhaul link data structure, identifying, at the portal routing device, a route from the portal routing device to the first wireless non-portal routing device; and wirelessly forwarding the packet from the portal routing device to the wireless device via the first wireless non-portal routing device.
 2. The method of claim 1, further comprising dropping, at the portal routing device, the packet transmitted from a second wireless non-portal routing device in the route, after the packet has been forwarded from the portal routing device.
 3. The method of claim 1, further comprising updating the client link data structure based on a roaming message transmitted from a third wireless non-portal routing device to which the wireless device is newly connected.
 4. The method of claim 1, wherein the backhaul link data structure includes a network address of a second wireless non-portal routing device as a next-hop address for the portal routing device to forward the packet to the first wireless non-portal routing device.
 5. The method of claim 1, wherein the backhaul link data structure includes an identifier of an outgoing network interface of the portal routing device connected to a next wireless non-portal routing device for the portal routing device to forward the packet to the first wireless non-portal routing device.
 6. The method of claim 1, wherein the packet is forwarded in response to the wireless device roaming to the first wireless non-portal routing device from a second wireless non-portal routing device.
 7. The method of claim 1, wherein the backhaul link data structure is unchanged due to an update of the client link data structure in response to the wireless device roaming between a plurality of wireless non-portal routing devices.
 8. The method of claim 1, wherein the client link data structure is shared with the first and other wireless non-portal routing devices in the network.
 9. The method of claim 1, further comprising: generating, by the portal routing device, a link-state-update message comprising the backhaul link information and the client link information of each of the plurality of non-portal routing devices; and broadcasting, by the portal routing device, the link-state-update message to the plurality of non-portal routing devices, wherein each of the plurality of non-portal routing devices is configured to be synchronized with one another and the portal routing device based on the link-state-update message.
 10. The method of claim 1, wherein, for each of the plurality of non-portal devices, the backhaul link information comprises logical link information between the non-portal device and an adjacent node of the network and the client link information comprises link information indicating a connection between the non-portal device and the wireless device.
 11. A system, comprising: a plurality of wireless non-portal routing devices; and a portal routing device configured to: receive a packet including a destination network address assigned to a wireless device; receive a link-state register message from each of the plurality of non-portal routing devices, the link-state register message comprising backhaul link information and client link information; aggregate the link-state register messages from the plurality of non-portal routing devices to generate a backhaul link data structure storing the backhaul link information from the plurality of non-portal routing devices and a client link data structure storing the client link information from the plurality of non-portal routing devices, the backhaul link data structure being stored separately from the client link data structure at the portal routing device; based on the client link data structure, identify a first wireless non-portal routing device from among the plurality of non-portal routing devices connected to the wireless device; based on the backhaul link data structure, identify a route from the portal routing device to the first wireless non-portal routing device; and wirelessly forward the packet from the portal routing device to the wireless device via the first wireless non-portal routing device.
 12. The system of claim 11, wherein the portal routing device is further configured to drop the packet transmitted from a second wireless non-portal routing device in the route, after the packet has been forwarded from the portal routing device.
 13. The system of claim 11, wherein the portal routing device is further configured to update the client link data structure based on a roaming message transmitted from third a wireless non-portal routing device to which the wireless device is newly connected.
 14. The system of claim 11, wherein the backhaul link data structure includes a network address of a second wireless non-portal routing device as a next-hop address for the portal routing device to forward the packet to the first wireless non-portal routing device.
 15. The system of claim 11, wherein the backhaul link data structure includes an identifier of an outgoing network interface of the portal routing device connected to a next wireless non-portal routing device for the portal routing device to forward the packet to the first wireless non-portal routing device.
 16. The system of claim 11, wherein the portal routing device forwards the packet in response to the wireless device roaming to the first wireless non-portal routing device from another wireless non-portal routing device.
 17. The system of claim 11, wherein the backhaul link data structure is unchanged due to an update of the client link data structure in response to the wireless device roaming between a plurality of wireless non-portal routing devices.
 18. A portal routing device, comprising: a processor; and a memory coupled to the processor storing instructions that when executed cause the processor to: receive a packet including a destination network address assigned to a wireless device; receive a link-state register message from each of a plurality of non-portal routing devices, the link-state register message comprising backhaul link information and client link information; aggregate the link-state register messages from the plurality of non-portal routing devices to generate a backhaul link data structure storing the backhaul link information from the plurality of non-portal routing devices and a client link data structure storing the client link information from the plurality of non-portal routing devices, the backhaul link data structure being stored separately from the client link data structure at the portal routing device; based on the client link data structure, identify a first wireless non-portal routing device from among the plurality of non-portal routing devices connected to the wireless device; based on the backhaul link data structure, identify a route from the portal routing device to the first wireless non-portal routing device; and wirelessly forward the packet from the portal routing device to the wireless device via the first wireless non-portal routing device.
 19. The portal routing device of claim 18, wherein the instructions further cause the processor to: generate a link-state-update message comprising the backhaul link information and the client link information of each of the plurality of non-portal routing devices; and broadcast the link-state-update message to the plurality of non-portal routing devices, wherein each of the plurality of non-portal routing devices is configured to be synchronized with one another and the portal routing device based on the link-state-update message.
 20. The portal routing device of claim 18, wherein, for each of the plurality of non-portal devices, the backhaul link information comprises logical link information between the non-portal device and an adjacent node of the network and the client link information comprises link information indicating a connection between the non-portal device and the wireless device. 